﻿<%@ Page Language="C#" MasterPageFile="MyStudy.master" AutoEventWireup="true" CodeFile="UserClassTasks.aspx.cs" Inherits="Theme_DL_UserClassTasks" %>

<%@ Register TagPrefix="radU" Namespace="Telerik.WebControls" Assembly="RadUpload.Net2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        }
        
        function AutoColseAler()
        {
            showFloat();
            setTimeout("ShowNo()",3000);
        }
    </script>

<div class="new_01">
		<div class="position"> 首页 &gt;&gt; 我的课堂 &gt;&gt;<asp:Label ID="lbl_ClassName" runat="server"></asp:Label>&gt;&gt;
            我的班级作业&gt;&gt;<asp:Label ID="lbl_TaskTitleInfo" runat="server"></asp:Label></div>
        <div class="my_calss">
        <div class="list">
                <ul>
                    <li><a href="StudyProject.aspx?ClassID=<%=classID %>&CourselistID=<%=courseListID %>">
                        班级学习</a></li>
                    <li><a href="MyClassTasks.aspx?ClassID=<%=classID %>&CourselistID=<%=courseListID %>">
                        我的班级作业</a></li>
                    <li><a href="DealClassTask.aspx?UserTask_ID=<%=UserTask_ID %>&CourseID=<%=courseid %>&TaskID=<%=taskid %>&ClassID=<%=classID %>&CourselistID=<%=courseListID %>">
                        完成作业</a></li>
                    <li><a href="UserClassTasks.aspx?UserTask_ID=<%=UserTask_ID %>&CourseID=<%=courseid %>&TaskID=<%=taskid %>&ClassID=<%=classID %>&CourselistID=<%=courseListID %>">
                        作业回复</a></li>
                    <li><a href="UserClassTasksDealByTeacher.aspx?UserTask_ID=<%=UserTask_ID %>&CourseID=<%=courseid %>&TaskID=<%=taskid %>&type=1&CourselistID=<%=courseListID %>&ClassID=<%=classID %>">
                        教师评价</a> </li>
                </ul>
            </div>
        
        
          <div class="jyzx5_01">
            <div class="jyzx6_01">
              <ul>
                <li class="jyzx_601">作业要求</li>
                <li><asp:Label runat="server" ID="lbl_TaskTitle"></asp:Label> </li>
                <li> <asp:Label runat="server" ID="lbl_TaskContent"></asp:Label> </li>
                <li> 附件：<asp:Label runat="server" ID="lbl_TaskAccessory"></asp:Label> </li>
                <li>结束时间：<asp:Label runat="server" ID="lbl_endtime"></asp:Label> </li>
                
                <li>&nbsp;</li>
                <li class="jyzx_601"><asp:Label ID="lbl_UserName" runat="server" ForeColor="Red"></asp:Label>的作业 </li>
                <li> <asp:Label ID="lbl_MyTaskTitle" runat="server"></asp:Label></li>
                <li><asp:Label runat="server" ID="lbl_MyTaskContent"></asp:Label></li>
                <li>附件：<asp:Label runat="server" ID="lbl_MyTaskAccessory"></asp:Label></li>
                <li>完成时间：<asp:Label runat="server" ID="lbl_Finishtime"></asp:Label></li>
                <li>&nbsp;</li>
                <li class="jyzx_601">作业回复</li>
                     <li>&nbsp;</li>
           <%--<asp:GridView ID="gv_UserReply" runat="server" AutoGenerateColumns="False" >
                        <Columns>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <li>
                                    <table width="678" border="0" cellpadding="2" cellspacing="0" class="border_style">
                            <tr>
                                <td style="font-size: 12px; font-weight: bold; padding-left: 30px; padding-top: 10px;color: #275c97;">
                                    <img src="../../css/1/webimages/zx1.png" align="absmiddle" alt="" />
                                    <%#Eval("Content") %></td>
                            </tr>
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 5px;">
                                   附件：<%#Eval("AccessoryName")%>
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 10px;">
                                    &nbsp;完成时间：<%#Eval("CreateDate")%>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 姓名：<%#Eval("Name")%>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 10px;">
                                    <asp:LinkButton ID="lnkbtn_pingjia" runat="server" CommandName="lstudy" CommandArgument='<%#Eval("Content")%>'>评价</asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                                            </li>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                           
                                    <li>No Data! </li>
                
                        </EmptyDataTemplate>
                    </asp:GridView>--%>
                    <asp:Repeater ID="rpt_PaperReseach" runat="server" OnItemCommand="rpt_PaperReseach_ItemCommand" OnItemDataBound="rpt_PaperReseach_ItemDataBound">
                    
                    <ItemTemplate>
                        <table width="678" border="0" cellpadding="2" cellspacing="0" class="border_style">
                            <tr>
                                <td style="font-size: 12px; font-weight: bold; padding-left: 30px; padding-top: 10px;color: #275c97;">
                                    <img src="../../css/1/webimages/zx1.png" align="absmiddle" alt="" />
                                    <%#Eval("Content") %></td>
                            </tr>
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 5px;">
                                   附件：<%#Eval("AccessoryName")%>
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 10px;">
                                    &nbsp;回复时间：<%#Eval("CreateDate")%>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 姓名：<%#Eval("Name")%>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 50px; color: Gray; padding-bottom: 10px;text-align:right">
                                    <asp:LinkButton ID="lnbtn_Quote" runat="server" CommandArgument='<%#Eval("TReply_Id") %>' CommandName="Quote" >引用</asp:LinkButton>

                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:Repeater>
               
                <li class="jyzx_601">我的回复 </li>
                <li>
                  <table width="685" border="0" cellspacing="5" cellpadding="0">
                    <tr>                    
                    <asp:Label runat="server" ID="lbl_qoen"></asp:Label> 
                    <asp:Button ID="Button1" runat="server" Text="取消引用" CssClass="bottom" OnClick="btnclear_Click" Visible="false" />
                      <td width="80" style="vertical-align:top;"><div align="center">内&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;容：</div></td>
                      <td width="553">
                      <asp:TextBox ID="txt_MyTaskContent" runat="server" Width="360px" TextMode="MultiLine"
                                Rows="6" BorderWidth="1px"></asp:TextBox>
                                
                      <%--<asp:RequiredFieldValidator ID="rfv_txt_MyTaskContent" runat="server" ErrorMessage="*"
                                ControlToValidate="txt_MyTaskContent"></asp:RequiredFieldValidator>--%></td>
                      <td width="74">&nbsp;</td>
                    </tr>
                  </table>
                </li>
                <li>
                  <table width="685" border="0" cellspacing="5" cellpadding="0">
                    <tr>
                      <td width="80"><div align="center">附件标题：</div></td>
                      <td width="553"><asp:TextBox ID="txt_MyAccessoryTitle" runat="server" Width="360px" MaxLength="36"
                                BorderWidth="1px"></asp:TextBox>
                                <asp:Label runat="server" ID="lbl_contentid"></asp:Label>
                      </td>
                      <td width="74">&nbsp;</td>
                    </tr>
                  </table>
                </li>
                <li>
                  <table width="685" border="0" cellspacing="5" cellpadding="0">
                    <tr>
                      <td width="80"><div align="center">附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件：</div></td>
                      <td width="437"><asp:Label runat="server" ID="lbl_MyAccessoryTitle"></asp:Label>
                            <asp:Label runat="server" ID="lbl_MyAccessoryid" Visible="false"></asp:Label>
                            <a href="#" onclick="showFloat();">上传新附件</a>
                            <asp:Label ID="lbl_UploadFile" runat="server" Text=""></asp:Label></td>
                      <td width="190">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td><asp:Button ID="btnSave" runat="server" Text="保存" CssClass="inputBotton2" OnClick="btnSave_Click" />
                            <asp:Label runat="server" ID="lbl_err_msg" ForeColor="Red" Visible="false"></asp:Label></td>
                    </tr>
                  </table>
                </li>
              </ul>
              
              
            </div>
          </div>
        </div>
  </div>


 <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
                background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
                left: 0; top: 0; display: none; overflow: hidden;">
            </div>
            <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
                width: 678px; z-index: 1001; position: absolute; display: none; top: 32%; left: 47%;
                margin: -200px 0 0 -400px;">
                <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                        <tr>
                            <th>
                                &nbsp;
                            </th>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbl_msg_Description" runat="server" Text="上传"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <radU:RadProgressManager ID="Radprogressmanager1" Width="100%" runat="server" />
                                <radU:RadProgressArea ID="progressArea1" Width="100%" runat="server">
                                </radU:RadProgressArea>
                                <br />
                                <asp:FileUpload ID="FileUpload1" runat="server" Width="80%" />
                                <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" Text="上传" OnClick="btnUpload_Click" />
                                <br />
                                <asp:Label ID="lbl_FileUpload_msg_FileType" runat="server" Text="" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="tree-bottom-bg1">
                                <input id="btn_colse" type="button" value='关闭' class="inputBotton2" onclick="ShowNo()" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>


</asp:Content>
